package com.ciwong.epaper.modules.wordlist.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018/3/30.
 */

public class  PageListBean implements Serializable {
    /**
     * wordId : 4640975193746341815
     * userId : 155014
     * vesionId : 950460940485563017
     * content : word
     * packageId : 3317
     * cId : 1023244
     * moduleId : 10
     * resource : {"symbol":"abc","picture_url":"www.haiyujiaoyu.com","pretatuins":"","sentences":""}
     * records : {"score":100,"submitDate":946656000,"audioUrl":"http://mfs-bak.oss-cn-beijing.aliyuncs.com/work/listen/0000033f-1c60-4920-8bd2-6da1fd62e541.mp3"}
     */

    /**
     * 是否选中
     */
    private boolean isSelected=false;
    /**
     *单词ID
     */
    private String wordId;
    /**
     * 用户ID
     */
    private int userId;
    /**
     * 资源版本ID
     */
    private String vesionId;
    /**
     * 单词内容
     */
    private String content;
    /**
     * 资源包ID
     */
    private int packageId;
    /**
     * 资源包目录ID
     */
    private String cId;
    /**
     * 模块ID
     */
    private int moduleId;
    /**
     * 资源对象
     */
    private PageListBean.ResourceBean resource;
    /**
     * 朗读记录
     */
    private PageListBean.RecordsBean records;
    /**
     * 单词列表
     */
    public boolean getSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }
    public String getWordId() {
        return wordId;
    }

    public void setWordId(String wordId) {
        this.wordId = wordId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getVesionId() {
        return vesionId;
    }

    public void setVesionId(String vesionId) {
        this.vesionId = vesionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getPackageId() {
        return packageId;
    }

    public void setPackageId(int packageId) {
        this.packageId = packageId;
    }

    public String getCId() {
        return cId;
    }

    public void setCId(String cId) {
        this.cId = cId;
    }

    public int getModuleId() {
        return moduleId;
    }

    public void setModuleId(int moduleId) {
        this.moduleId = moduleId;
    }

    public PageListBean.ResourceBean getResource() {
        return resource;
    }

    public void setResource(PageListBean.ResourceBean resource) {
        this.resource = resource;
    }

    public PageListBean.RecordsBean getRecords() {
        return records;
    }

    public void setRecords(PageListBean.RecordsBean records) {
        this.records = records;
    }

    @Override
    public String toString() {
        return "PageListBean{" +
                "wordId='" + wordId + '\'' +
                ", userId=" + userId +
                ", vesionId='" + vesionId + '\'' +
                ", content='" + content + '\'' +
                ", packageId=" + packageId +
                ", cId='" + cId + '\'' +
                ", moduleId=" + moduleId +
                ", resource=" + resource +
                ", records=" + records +
                '}';
    }

    public static class ResourceBean implements Serializable {
        @Override
        public String toString() {
            return "ResourceBean{" +
                    "symbol='" + symbol + '\'' +
                    ", picture_url='" + picture_url + '\'' +
                    ", pretatuins='" + pretatuins + '\'' +
                    ", sentences='" + sentences + '\'' +
                    '}';
        }

        /**
         * symbol : abc
         * picture_url : www.haiyujiaoyu.com
         * pretatuins :
         * sentences :
         */
        /**
         * 音标
         */
        private String symbol;
        /**
         * 音节
         */
        private String syllable;
        /**
         * 图片
         */
        private String picture_url;
        /**
         * 释义
         */
        private String pretatuins;
        /**
         * 例句
         */
        private List<SentencesBean> sentences;
        /**
         * 音频地址
         */
        private String audioUrl;
        public String getAudioUrl() {
            return audioUrl;
        }

        public void setAudioUrl(String audioUrl) {
            this.audioUrl = audioUrl;
        }



        public String getSymbol() {
            return symbol;
        }

        public void setSymbol(String symbol) {
            this.symbol = symbol;
        }

        public String getPicture_url() {
            return picture_url;
        }

        public void setPicture_url(String picture_url) {
            this.picture_url = picture_url;
        }

        public String getPretatuins() {
            return pretatuins;
        }

        public void setPretatuins(String pretatuins) {
            this.pretatuins = pretatuins;
        }


        public List<SentencesBean> getSentences() {
            return sentences;
        }

        public void setSentences(List<SentencesBean> sentences) {
            this.sentences = sentences;
        }

        public String getSyllable() {
            return syllable;
        }

        public void setSyllable(String syllable) {
            this.syllable = syllable;
        }

        public static class SentencesBean implements Serializable{
            /**
             * text : The apple is red.苹果是红色的。00
             * audio_url :
             */

            private String text;
            private String audio_url;

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getAudio_url() {
                return audio_url;
            }

            public void setAudio_url(String audio_url) {
                this.audio_url = audio_url;
            }
        }
    }

    public static class RecordsBean  implements Serializable {
        /**
         * score : 100
         * submitDate : 946656000
         * audioUrl : http://mfs-bak.oss-cn-beijing.aliyuncs.com/work/listen/0000033f-1c60-4920-8bd2-6da1fd62e541.mp3
         */
        /**
         * 分数
         */

        private int            score;
        /**
         * 提交时间
         */
        private String         submitDate;
        /**
         * 音频地址
         */
        private String         audioUrl;

        public String getLines() {
            return lines;
        }

        public void setLines(String lines) {
            this.lines = lines;
        }

        private String lines;

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public String getSubmitDate() {
            return submitDate;
        }

        public void setSubmitDate(String submitDate) {
            this.submitDate = submitDate;
        }

        public String getAudioUrl() {
            return audioUrl;
        }

        public void setAudioUrl(String audioUrl) {
            this.audioUrl = audioUrl;
        }

        @Override
        public String toString() {
            return "RecordsBean{" +
                    "score=" + score +
                    ", submitDate=" + submitDate +
                    ", audioUrl='" + audioUrl + '\'' +
                    '}';
        }
    }
}